import { defineStore } from 'pinia'
import { type AIAgent, type Conversion, AIGCStatus, type ChatMessage } from '../utils/interface'

export const aiAgentStore = defineStore('aiAgent', {
  state: () => ({
    myAgents: [] as AIAgent[],
    conversionHistory: [] as Conversion[]
  }),
  getters: {},
  actions: {
    setMyAgents(agents: AIAgent[]) {
      this.myAgents = agents
    },
    setConversionHistory(conversionHistory: Conversion[]) {
      this.conversionHistory = conversionHistory
    },
    addConversionHistory(conversion: Conversion) {
      this.conversionHistory.push(conversion)
    }
  }
})
